﻿<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta charset="utf-8">
<title>移动终端应用服务</title>


<script src="https://m.ly851.com/dcm/js/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="https://m.ly851.com/dcm/js/common.js" type="text/javascript"></script>
<script src="//cstaticdun.126.net/load.min.js"></script>
<script language="JavaScript"> 
    var curr_hostname = location.hostname;
  if (curr_hostname == "c.ly851.com") {
        document.location.href="https://c.ly851.com/mydconelogin.html";
     }
   

  if (curr_hostname == "m.ly851.com" ){
 	if(document.location.protocol=="http:"){
 	  //window.location.href="https://m.ly851.com"+location.pathname;
    location.replace("https://m.ly851.com");

  	}
   }
   if (curr_hostname == "mail.ly851.com") {
        document.location.href="https://mail.ly851.com/myverselogin.html";
     }
    if (curr_hostname == "bits.ly851.com") {
        document.location.href="https://bits.ly851.com/mydconelogin.html";
     }
　　 String.prototype.trim=function(){
　　    return this.replace(/(^\s*)|(\s*$)/g, "");
　　 }
</script>
<style>
@charset "utf-8";
/* CSS Document */

/*Reset start*/
body, div, dl, dt, dd, ul, ol, li,h1, h2, h3, h4, h5, h6, form, legend, button, p,th,td{border:0;font-size:100%;margin:0;outline:0;padding:0;}
h1, h2, h3, h4, h5, h6{font-size:100%;font-weight:normal;}
fieldset, img{border:none;}
img{vertical-align:top; border:0}
a{ text-decoration:none; outline:none; color:#000000;}a:hover{ color:#000000;}
a:focus{outline:none;}
ol, ul{list-style:none outside none; padding:0; margin:0}
/*table{border-collapse:collapse;border-spacing:0;}*/
sub,sup{font-size:80%;line-height:0;position:relative;vertical-align:baseline;}
sup{top:-0.5em;}
sub{bottom:-0.25em;}
var{font-family: Arial; font-style:normal;}
var{ font-family:Simsun; padding-left:3px;}
body,button,input,select,textarea{font:12px/1.5 "微软雅黑"; padding:0; margin:0;}
.clearfix:after {content:"\20"; display:block; height:0; clear:both; visibility:hidden; }
.clearfix{display:inline-block; }
.clearfix{display:block;}
.clearbox{border-top:transparent 0px solid;clear:both;font-size:0;margin-top:0px;visibility:hidden; overflow:hidden;height:0;}
/*Reset end*/

body{color:#666666; font-family:"微软雅黑"; overflow-x:hidden; background-color:#c7c6c6;}
/*html,body{height:100%;}*/

.news_top{background-color:#D71629; height:60px; position:fixed; top:0; left:0; width:100%;z-index:100;}
.news_top_left{float:left; width:15%; background-color:#C70D1A; text-align:center; height:60px;}
.news_top_left img{height:30px; margin-top:15px;}
.news_top_right{float:right; width:70%; text-align:center; padding:10px 15% 10px 0; font-size:24px; color:#FFF; font-weight:bolder;}
.news_top_clear{clear:both;}

.news_footer{text-align:center; padding:12px 0; background-color:#FFF;width:95%; margin:auto; }
.news_body{width:95%; height:100%; margin:auto; background-color:#FFF;}

.news_body_top{margin-top:65px;}
.news_body_top2{margin-top:5px;}


/*********** login ************/
.login_bg{background-color:#F9F9F9;}
.login_logo img{width:60%;}
.login_logo {text-align:center;}

.login_donglu{width:80%; margin:70px auto 0 auto;}
.login_donglu .login_bo{border:1px #D5D5D5 solid; padding:10px 10px 10px 38px; background:url(https://m.ly851.com/dcm/images/login_ico01.jpg) no-repeat 8px center; background-size:20px; margin-bottom:10px;}
.login_donglu .login_bo2{background:url(https://m.ly851.com/dcm/images/login_ico02.jpg) no-repeat 8px center; background-size:20px;}
.login_donglu .login_bo3{background:url(https://m.ly851.com/dcm/images/login_ico03.jpg) no-repeat 8px center; background-size:20px;}

.login_donglu .login_bo div{border-left:1px #D5D5D5 solid;}
.login_donglu .login_bo input{border:0;background-color:#F9F9F9; width:95%; height:20px; margin-left:5px;}
.login_donglu .login_bo3 input{width:30%;border:1px #D5D5D5 solid; margin-left:5px;}
.login_donglu .login_bo3 img{height:20px;}
.login_donglu .login_ji{text-align:right; padding:10px 0;border-bottom:1px #D5D5D5 solid;}

.login_donglu .login_an{background-color:#D51527; width:85%; margin:30px auto 0; height:30px; line-height:30px; font-size:18px; font-family:'微软雅黑';  color:#fff; text-align:center;border-radius:5px;}
.login_donglu .login_an a{color:#fff; display:block;}
.login_donglu .login_an a:visited,.login_donglu .login_an a:hover{background-color:#ccc;display:block;border-radius:4px;}
.login_bottomlogo{margin-top:30px;text-align:center;}
.login_bottomlogo img{width:130px;margin:0 auto;}
.pic img{width:100%}
</style>

<!--<script src="https://m.ly851.com/dcm/js/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="https://m.ly851.com/dcm/js/common.js" type="text/javascript"></script>-->
</head>
<div id="websealError"></div>
<body class="login_bg">
<div class="login_bg">
	<div class="login_logo"><img src="https://m.ly851.com/dcm/images/login_logo.jpg" /></div>
	<div class="login_donglu">
    	<div class="login_bo"><div><INPUT id=usernameInput value='' name=usernameInput></div></div>
    	<div class="login_bo login_bo2"><div><INPUT id=passwordInput name=passwordInput type=password></div></div>
        <div style="width:260px; height:15px;" id="captcha_div"></div>
        <font color="#FF0000"><div id="websealErrorDisplay"></div></font>
        <div id="jzw" class="login_ji"><INPUT id=checkCookie type=checkbox name=checkCookie> 记住我</div>
        
        <div class="login_an"><div id="loginbutton" onClick="login_submit()">登  录</div>

        
    </div>
</div>

        <div class="pic">
        		<!--<A href="https://www.iquicker.com.cn/welcome/discover.html?f=1" target="new"></A>-->
         <!--<img src="https://m.ly851.com/dcm/images/banner.jpg">-->
        </div> <!--
<div class="login_bottomlogo"><img src="https://m.ly851.com/dcm/images/digitalchina.png" ></div>-->
<FORM id="uuipLogin" METHOD=POST action="/pkmslogin.form">
	<INPUT TYPE="HIDDEN" NAME="login-form-type" VALUE="pwd" />
	<INPUT TYPE="HIDDEN" id="username" NAME="username" />
	<INPUT TYPE="HIDDEN" id="password" NAME="password" />
</form>






</body>
</html>

<script language="JavaScript"> 
	
	var curr_url = location.pathname; 
  if (curr_url.substr(1,4) == "dcoa" ) {
    document.getElementById("jzw").style.display = "none";
   }
	//写cookies函数
	function SetCookie(name,value)//两个参数，一个是cookie的名子，一个是值
	{
	    var Days = 30; //此 cookie 将被保存 30 天
	    var exp  = new Date();    //new Date("December 31, 9998");
	    exp.setTime(exp.getTime() + Days*24*60*60*1000);
	    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+";domain=m.ly851.com";
	}
	function getCookie(name)//取cookies函数        
	{
	    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
	    if(arr != null) return unescape(arr[2]); return null;
	}
	function delCookie(name)//删除cookie
	{
	    var exp = new Date();
	    exp.setTime(exp.getTime() - 1);
	    var cval=getCookie(name);
	    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
	}
	function checkReqPhone()
	{
		var sUserAgent = navigator.userAgent.toLowerCase();  
	    var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";    
	    var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";  
	    var bIsMidp = sUserAgent.match(/midp/i) == "midp";  
	    var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";  
	    var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";  
	    var bIsAndroid = sUserAgent.match(/android/i) == "android";  
	    var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";  
	    var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";  
	    
	    // alert("你的浏览器标识为:" + sUserAgent);
	    if(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM){
	    	// alert("Others");
	    	return true;
	    } else {
	    	// alert("PC");
	    	return true;
	    }
	}
 
	function initCookie()
	{	
		var userName = getCookie("usernameInput");
		var password = getCookie("passwordInput");

		if(userName == null || userName=="")
		{
			userName="";
		}
		if(password == null || password=="")
		{
			password="";
		}
		
		document.getElementById("usernameInput").value = userName;
		document.getElementById("username").value = userName;
		
		document.getElementById("passwordInput").value = password;
		document.getElementById("password").value = password;
 
		if(userName==""&&password=="")
		{
			document.getElementById("checkCookie").checked=false;
		}
		else
		{
			document.getElementById("checkCookie").checked=true
		}
		
	}
 
	function doReadCookie()
	{
		alert(getCookie('xiaoqi'));
	}
	
// 验证码组件初始化
      var validate = true;
      initNECaptcha({
          captchaId: 'cebdf0fdd59d4071a8e1aac59708fcc4',
          element: '#captcha_div',
          mode: 'embed', // 如果要用触发式，这里改为float即可
          width: '320px',
          onVerify: function(err, ret){
            if(!err){
               validate = false;
                // ret['validate'] 获取二次校验数据
            }
            else{
               validate = true;
            }
          }
      }, function (instance) {
          // 初始化成功后得到验证实例instance，可以调用实例的方法
      }, function (err) {
          // 初始化失败后触发该函数，err对象描述当前错误信息
      })	
	function login_submit()
	{

 
		var userName = $("#usernameInput").val().toLowerCase().trim();
		var passWd = $("#passwordInput").val();
		
                 if(validate){
                   alert("请输入验证码");
                   return;
                }
		var checkcode= $("#checkcode").val();
		if (userName == "") {
			alert("请输入ITcode");
			$('#checkcode').val("");
			//changeImg();
			return;
		}
		if (passWd=="") {
			alert("请输入ITpassword");
			$('#checkcode').val("");
			//changeImg();
			return;
		}
		
 		$("#username").attr("value", userName);
		$("#password").attr("value", passWd);
		if(document.getElementById("checkCookie").checked==true)
		{
			delCookie("usernameInput");
			delCookie("passwordInput");
			SetCookie ("usernameInput", userName);
			SetCookie ("passwordInput", passWd);
		}
		else
		{
      SetCookie ("usernameInput", "");
			SetCookie ("passwordInput", "");
		}
 
	  $("#uuipLogin").attr("action", document.location.protocol+"//" + location.hostname + "/pkmslogin.form");
		//alert("submit!!!");
		//document.getElementById("uuipLogin").submit();

		if(checkReqPhone() == true){
			document.getElementById("uuipLogin").submit();
		} else {
			alert("用户您好，请使用手机客户端访问m.ly851.com!!");
		}
	}
 
 
	initCookie();
	
				strHTML = document.getElementById("websealError").innerHTML;
				//alert("12222:" + strHTML);
				if(strHTML != null && strHTML != ""){	 
					 document.getElementById("websealError").style.display = "none";

					 document.getElementById("websealErrorDisplay").innerHTML="<font color=red>用户名或密码错误!</font>"
					 document.getElementById("usernameInput").focus();
					 }
    
 
</script>